/*
 Navicat Premium Data Transfer

 Source Server         : 39.108.115.99
 Source Server Type    : SQL Server
 Source Server Version : 15002000
 Source Host           : 39.108.115.99:1433
 Source Catalog        : GangYi
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15002000
 File Encoding         : 65001

 Date: 25/06/2024 09:41:47
*/


-- ----------------------------
-- Table structure for t_zt_subject
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[t_zt_subject]') AND type IN ('U'))
	DROP TABLE [dbo].[t_zt_subject]
GO

CREATE TABLE [dbo].[t_zt_subject] (
  [subjectName] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ParentId] bigint  NOT NULL,
  [Lvl] tinyint  NULL,
  [IsShowCycleList] bit  NOT NULL,
  [CTime] datetime  NOT NULL,
  [CId] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [UTime] datetime  NULL,
  [UId] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DId] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTime] datetime  NULL,
  [MarkType] int  NULL,
  [subjectModel] int  NULL,
  [AccessPath] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CategoryCode] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Sort] int DEFAULT 0 NOT NULL,
  [IsDel] bit DEFAULT 0 NOT NULL,
  [Tip] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Id] bigint  NOT NULL
)
GO

ALTER TABLE [dbo].[t_zt_subject] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'栏目名称',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'subjectName'
GO

EXEC sp_addextendedproperty
'MS_Description', N'父级栏目',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'ParentId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'级别',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'Lvl'
GO

EXEC sp_addextendedproperty
'MS_Description', N'是否显示在循环列表',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'IsShowCycleList'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'CTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建人',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'CId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改时间',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'UTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改人',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'UId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除人',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'DId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除时间',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'DTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'栏目类型 0 资讯 1 展会',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'MarkType'
GO

EXEC sp_addextendedproperty
'MS_Description', N'栏目模型',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'subjectModel'
GO

EXEC sp_addextendedproperty
'MS_Description', N'访问路径',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'AccessPath'
GO

EXEC sp_addextendedproperty
'MS_Description', N'信息类别码',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'CategoryCode'
GO

EXEC sp_addextendedproperty
'MS_Description', N'排序',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'Sort'
GO

EXEC sp_addextendedproperty
'MS_Description', N'是否删除',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'IsDel'
GO

EXEC sp_addextendedproperty
'MS_Description', N'提示语',
'SCHEMA', N'dbo',
'TABLE', N't_zt_subject',
'COLUMN', N'Tip'
GO


-- ----------------------------
-- Primary Key structure for table t_zt_subject
-- ----------------------------
ALTER TABLE [dbo].[t_zt_subject] ADD CONSTRAINT [PK_t_zt_subject] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

